/*
 * Game Object: Score
 */

package demo;

import java.awt.Graphics;
import javaPlay.GameObject;
import java.awt.Color;
import java.awt.Font;
import java.lang.String;

/**
 * 
 * @author VisionLab/PUC-Rio
 */
public class Score extends GameObject {
	
	private int scoreCounter = 5;
	
	public void setScore(int n) {
		scoreCounter = scoreCounter + n;
	}
	
	public int getScore() {
		return scoreCounter;
	}
	
	public void step(long timeElapsed) {
		
	}
	
	public void draw(Graphics g) {
		g.setColor(Color.RED);
		g.setFont(new Font("Arial", Font.BOLD, 18));
		g.drawString("VIDAS: " + String.valueOf(scoreCounter), 80, 110);
	}
}